const tagview = {
    namespaced: true,
    state() {
        return {
            visitedViews: []
        }
    },
    mutations: {
        ADD_VIEW(state,data) {
            state.visitedViews.push(data)
        },
        DELETE_VIEW(state,menuId) {
            state.visitedViews = state.visitedViews.filter(item => {
                return item.meta.menuId !== menuId
            })
        }
    },
    actions: {

    }
}

export default tagview